package com.yike.product.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yike.product.entity.GoodsCategory;
import com.yike.product.param.GoodsCategoryPageParam;

import com.yike.product.vo.GoodsCategoryVo;
import org.apache.ibatis.annotations.Mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import java.util.List;

/**
 * 商品分类 Mapper 接口
 *
 * @author Sakura
 * @since 2024-10-18
 */
@Mapper
public interface GoodsCategoryMapper extends BaseMapper<GoodsCategory> {

    GoodsCategoryVo getGoodsCategory(@Param("id") Long id) throws Exception;

    List<GoodsCategoryVo> getAllGoodsCategory() throws Exception;

    IPage<GoodsCategoryVo> getGoodsCategoryList(@Param("page") Page page, @Param("param") GoodsCategoryPageParam param);


}
